package Resource;

import Enums.TileShape;
import Enums.TileType;

public class TileLib {

	private TileBP[][] library;
	
	public TileLib() {
		library = new TileBP[TileType.values().length][TileShape.values().length];
	}
	
	public void addTile(TileBP tile, TileType type, TileShape shape) {
		library[type.ordinal()][shape.ordinal()] = tile;
	}
	
	public TileBP getTile(TileType type, TileShape shape) {
		return library[type.ordinal()][shape.ordinal()];
	}

}
